#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
@Project : POS_api_test_project 
@File    : run.py
@IDE     : PyCharm 
@Author  : Mario
@Date    : 2022/5/30 12:24 
@Describe:
"""
import os
import pytest

if __name__ == '__main__':
    pytest.main(['-s', '-W', 'ignore:Module already imported:pytest.PytestWarning',
                 '--alluredir', './report/tmp', "--clean-alluredir"])
    os.system(r"allure generate ./report/tmp -o ./report/html --clean")
    os.system(f"allure serve ./report/tmp -p 9999")
